package com.ys.可变字符串;

/**
 * 描述: 链式语法类:
 * 成员方法返回 this
 *
 * @author CodeYang
 * @version 2020/12/22 21:33
 */
public class ChainClass {

    public ChainClass eat() {
        System.out.println("吃饭");
        return this;
    }

    public ChainClass faly() {
        System.out.println("飞");
        return this;
    }

    public ChainClass jump() {
        System.out.println("跳");
        return this;
    }

}
